using System;
using System.Collections.Generic;
using System.Text;

namespace Eve.Data
{
    public class CareerSkill : EveAssociation<Career, Type>
    {
        private int levels;

        public Career Career
        {
            get { return From; }
        }
        public Type Skill
        {
            get { return To; }
        }
        public int Levels
        {
            get { return levels; }
        }

        internal CareerSkill(DbDataRow dr)
            : base(dr.Database, new Career(dr.Database, dr["careerID"]), new Type(dr.Database, dr["skillTypeID"]))
        {
            Fill(dr);
        }
        internal CareerSkill(DbDataRow dr, Career career)
            : base(dr.Database, career, new Type(dr.Database, dr["skillTypeID"]))
        {
            Fill(dr);
        }

        private void Fill(DbDataRow dr)
        {
            levels = dr["levels"];
        }
    }
}
